package com.zgx.plus.common.enums;

/**
 * 操作状态
 * 3xx = 重定向  4xx = 客户端错误 5xx = 服务器错误 6xx = 用户信息错误
 */

public enum ExceptionEnum {
    EXCEPTION400(400, "错误的请求|Bad Request"),
    EXCEPTION401(401, "未授权|Unauthorized"),
    EXCEPTION403(403, "禁止访问|Forbidden"),
    EXCEPTION404(404, "没有找到|Not Found"),
    EXCEPTION405(405, "方法不允许|Method Not Allowed"),
    EXCEPTION408(408, "请求超时|Request Timeout"),
    EXCEPTION414(414, "请求URI太长|Request-URI Too Long"),
    EXCEPTION415(415, "不支持的媒体类型|Unsupported Media Type"),
    EXCEPTION500(500, "系统异常|Internal Server Error"),
    EXCEPTION502(502, "错误的网关|Bad Gateway"),
    EXCEPTION503(503, "服务不可用|Service Unavailable"),
    EXCEPTION504(504, "网关超时|Gateway Timeout"),
    EXCEPTION505(505, "HTTP版本不支持|HTTP Version Not Supported"),
    EXCEPTION_USERNAME(600, "用户或密码不存在|UserName Is Not Exist"),
    EXCEPTION_PWD(601, "用户密码错误|Password Error"),
    ;


    private final int code;
    private final String msg;

    ExceptionEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
